<?php
include("../function.php");

$user_name=$_GET[user_name];
$user_pwd=$_GET[user_pwd];

if($_GET[request]==1366){
	$re=mysql_query("select * from `user` where user_email='$user_name'")or die(mysql_error());
	$count=mysql_num_rows($re);
	$row=mysql_fetch_array($re);
	if($count==1){
		$pwd=md5($user_pwd);
		if($row[user_pwd]==$pwd){
			$_SESSION['login']="true";
			$_SESSION['login_mail']=$user_name;
			headerLogin();
		}else{
			echo "false";
			}
		}else{
			echo "no user";
			}
}
?>